xend: reserve vtd_mem on guest restore
authorMiroslav Rezanina <mrezanin@redhat.com>
Fri, 3 Sep 2010 17:22:31 +0000 (18:22 +0100)
committerMiroslav Rezanina <mrezanin@redhat.com>
Fri, 3 Sep 2010 17:22:31 +0000 (18:22 +0100)
commit47e13da0a1b0c6e22f95eb79585cb1ab1dddec75
tree5637e3d19190bf430de1b8b019613ec7492c9b87
parentfacd974fa81afda05a03f0c37ec5df12fa514dd5
xend: reserve vtd_mem on guest restore

There's need for free vtd_mem more memory for guest with
xen-unstable c/s 17529.  This memory is freed when guest is
created, but is not freed when guest is restored. So restore
guest fails due  to not enough of memory for guest.

Following patch uses same calculation of memory to free in guest
restore as is in guest creation.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/python/xen/xend/XendCheckpoint.py